﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SchoolLibrary.Desktop.Common.Dialog
{
    public partial class InputDialog : Form
    {
        private string value;

        public InputDialog()
        {
            InitializeComponent();
        }

        private void cancelButton_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void okButton_Click(object sender, EventArgs e)
        {
            this.value = this.valueTextBook.Text;
            this.Close();
        }

        public string Value
        {
            get { return value; }
        }
    }
}
